﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="Addition_of_two_Numbers._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 149px;
        }
        .style2
        {
            width: 23px;
        }
        .style3
        {
            width: 28px;
        }
        .style4
        {
            width: 149px;
            height: 30px;
        }
        .style5
        {
            width: 23px;
            height: 30px;
        }
        .style6
        {
            height: 30px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        ADDITION OF TWO NUMBERS
    </h2>
    <p>
        Please enter two numbers for addition.    
    </p>
  
        <table style="width:100%;">
            <tr>
                <td class="style1" colspan="2">
                    Enter first number</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    <asp:TextBox ID="txt_FirstNum" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                        ErrorMessage="Please enter first number between 0 to 100" 
                        MaximumValue = "100" MinimumValue="0" Type="Integer" 
                        ControlToValidate="txt_FirstNum"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td class="style1" colspan="2">
                    Enter second number</td>
                <td class="style2">
                    :</td>
                <td class="style3">
                    <asp:TextBox ID="txt_SecondNum" runat="server" ></asp:TextBox>
                </td>
                <td>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" 
                        ErrorMessage="Please enter first number between 0 to 100" 
                        MaximumValue = "100" MinimumValue="0" Type="Integer" 
                        ControlToValidate="txt_SecondNum"></asp:RangeValidator>
                </td>
            </tr>
            <tr>
                <td align="center" class="style4">
                    Click button for addition</td>
                <td align="center" class="style4">
                    <asp:Button ID="btn_addition" runat="server" Text="Addition Total" />
                </td>
                <td class="style5">
                    :</td>
                <td colspan="2" class="style6">
                    <asp:Label ID="lbl_total" runat="server" Font-Bold="True"></asp:Label>
                    <br />
                </td>
            </tr>
            </table>
   
</asp:Content>
